home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / code / r3cpsmod.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  3.5 KB  |  122 lines

  1.  
  2. // JavaScript wrapper for r3cpsmod.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_COMPASSMODEL_H = 1;
  7. include("oops/r3model.js")
  8.  
  9.  
  10. var R3CLID_COMPASSMODEL = 1262;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Adds a compass.
  16. // p3: String, name for the new compass.
  17.  
  18. R3COMPASSMODM_ADDCOMPASS = 1262000;
  19.  
  20. function mR3COMPASSMODM_ADDCOMPASS(p3) {
  21.   DoA(this.r3obj, 1262000, p3, R3TID_STRING, 0);
  22. }
  23.  
  24. // Description: Deletes a compass.
  25. // p3: String, name of the compass to be deleted.
  26.  
  27. R3COMPASSMODM_DELETECOMPASS = 1262001;
  28.  
  29. function mR3COMPASSMODM_DELETECOMPASS(p3) {
  30.   DoA(this.r3obj, 1262001, p3, R3TID_STRING, 0);
  31. }
  32.  
  33. // Description: Enumerates compasses.
  34. // p1: Object, callback object
  35. // p2: Integer, callback method
  36. // p3: Object, user context
  37.  
  38. R3COMPASSMODM_ENUMCOMPASSES = 1262002;
  39.  
  40. function mR3COMPASSMODM_ENUMCOMPASSES(p1, p2, p3) {
  41.   DoA3(this.r3obj, 1262002, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
  42. }
  43.  
  44. // Description: Sets a named macro for a given compass and position
  45. // p1: String, name of the compass
  46. // p2: Integer[], array of two values: direction and distance
  47. // p3: String, macro name
  48.  
  49. R3COMPASSMODM_SETCOMPASSMACR = 1262003;
  50.  
  51. function mR3COMPASSMODM_SETCOMPASSMACR(p1, p2, p3) {
  52.   DoA3(this.r3obj, 1262003, p1, R3TID_STRING, 0, p2, R3TID_INTEGER, R3TNF_ARRAY, p3, R3TID_STRING, 0);
  53. }
  54.  
  55. // Description: Gets a named macro for a given compass and position
  56. // p1: String, name of the compass
  57. // p2: Integer[], array of two values: direction and distance
  58. // p3: String, buffer for macro name
  59.  
  60. R3COMPASSMODM_GETCOMPASSMACR = 1262004;
  61.  
  62. function mR3COMPASSMODM_GETCOMPASSMACR(p1, p2, p3) {
  63.   DoA3(this.r3obj, 1262004, p1, R3TID_STRING, 0, p2, R3TID_INTEGER, R3TNF_ARRAY, p3, R3TID_STRING, 0);
  64. }
  65.  
  66. // Description: Finds a compass by name.
  67. // Returns: Boolean, TRUE if compass is found, FALSE otherwise
  68. // p3: String, compass name
  69.  
  70. R3COMPASSMODM_FINDCOMPASS = 1262005;
  71.  
  72. function mR3COMPASSMODM_FINDCOMPASS(p3) {
  73.   return   DoA(this.r3obj, 1262005, p3, R3TID_STRING, 0);
  74. }
  75.  
  76. // Description: Sets a label for a given compass and position
  77. // p1: String, name of the compass
  78. // p2: Integer[], array of two values: direction and distance
  79. // p3: String, label
  80.  
  81. R3COMPASSMODM_SETCOMPASSLABE = 1262008;
  82.  
  83. function mR3COMPASSMODM_SETCOMPASSLABE(p1, p2, p3) {
  84.   DoA3(this.r3obj, 1262008, p1, R3TID_STRING, 0, p2, R3TID_INTEGER, R3TNF_ARRAY, p3, R3TID_STRING, 0);
  85. }
  86.  
  87. // Description: Gets a label for a given compass and position
  88. // p1: String, name of the compass
  89. // p2: Integer[], array of two values: direction and distance
  90. // p3: String, buffer for label
  91.  
  92. R3COMPASSMODM_GETCOMPASSLABE = 1262009;
  93.  
  94. function mR3COMPASSMODM_GETCOMPASSLABE(p1, p2, p3) {
  95.   DoA3(this.r3obj, 1262009, p1, R3TID_STRING, 0, p2, R3TID_INTEGER, R3TNF_ARRAY, p3, R3TID_STRING, 0);
  96. }
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103. function r3Compassmodel () { 
  104.    this.base = r3God;
  105.    if(arguments.length) {
  106.       this.base(R3CLID_COMPASSMODEL, arguments);
  107.    }
  108.    // Methods
  109.    this.ADDCOMPASS=mR3COMPASSMODM_ADDCOMPASS;
  110.    this.DELETECOMPASS=mR3COMPASSMODM_DELETECOMPASS;
  111.    this.ENUMCOMPASSES=mR3COMPASSMODM_ENUMCOMPASSES;
  112.    this.SETCOMPASSMACR=mR3COMPASSMODM_SETCOMPASSMACR;
  113.    this.GETCOMPASSMACR=mR3COMPASSMODM_GETCOMPASSMACR;
  114.    this.FINDCOMPASS=mR3COMPASSMODM_FINDCOMPASS;
  115.    this.SETCOMPASSLABE=mR3COMPASSMODM_SETCOMPASSLABE;
  116.    this.GETCOMPASSLABE=mR3COMPASSMODM_GETCOMPASSLABE;
  117.  
  118.    // Attributes
  119. }
  120.  
  121. r3Compassmodel.prototype=new r3Model;
  122. // r3cpsmod.h_H